description = "默认布局页面"
[account]
[catalog]
[session]

==

use Jason\Ccshop\Controllers\Orders;
function onStart() {
	$this['orderStatus'] = (new Orders())->myOrdersStatus();
	$orderStatus = (new Orders())->myOrdersStatus();
	$cr = 0;//已取消
	$op = 0;//已下单
	$oa = 0;//已付款
	$ob = 0;//已发货
	$oall = 0;//全部
	foreach($orderStatus as $os){
	if($os['status_id'] == 6){
	$cr += $os['count'];
	}
	if($os['status_id'] == 8){
	$cr += $os['count'];
	}
	if($os['status_id'] == 1){
	$op += $os['count'];
	}
	//if($os['status_id'] == 9){
	//$op += $os['count'];
	//}
	if($os['status_id'] == 2){
	$oa += $os['count'];
	}
	if($os['status_id'] == 5){
	$ob += $os['count'];
	}
	$oall += $os['count'];
	}
	$this['cr']=$cr;
	$this['op']=$op;
	$this['oa']=$oa;
	$this['ob']=$ob;
	$this['oall']=$oall;
}

==

<!DOCTYPE html>
<html lang="ja-JP" xml:lang="ja-JP">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<link rel="shortcut icon" href="{{ 'assets/img/favicon.ico'|theme }}">
	<link rel="stylesheet" href="{{ 'assets/css/swiper.min.css'|theme }}">
	<link rel="stylesheet" href="{{ 'assets/css/font-awesome.min.css'|theme }}">
	<link rel="stylesheet" href="{{ 'assets/css/commen.css'|theme }}">
	<link rel="stylesheet" href="{{ 'assets/css/css.css'|theme }}">
	<title>{% placeholder page_title default type="text" %}{{ catalog.app.name }}{% endplaceholder %}</title>
</head>
<body>
	
	{% partial 'common/head' %}
	{% page %}
	{% partial 'common/footer' %}
    {% partial 'common/bottom-banner' %} 


	<div id="loading">
	    <div class="loading"><img src="{{ 'assets/img/loadingAnimation.gif'|theme }}" alt=""></div>
	</div>
	<div class="goTop"><img src="{{ 'assets/img/btn_page_top.png'|theme }}" alt=""></div>
	<script type="text/javascript" src="{{ 'assets/js/jquery-1.11.2.min.js'|theme }}"></script>
	<script type="text/javascript" src="{{ 'assets/js/jquery.lazyload.js'|theme }}"></script>
	<script type="text/javascript" src="{{ 'assets/js/swiper.min.js'|theme }}"></script>
	<script type="text/javascript" src="{{ 'assets/js/main.js'|theme }}"></script>
	{% framework extras %}
  	{% scripts %}
  	<!-- Global site tag (gtag.js) - Google Analytics -->
	<script async src="https://www.googletagmanager.com/gtag/js?id=UA-73792739-11"></script>
	<script>
	  	window.dataLayer = window.dataLayer || [];
	  	function gtag(){dataLayer.push(arguments);}
	  	gtag('js', new Date());

	  	gtag('config', 'UA-73792739-11');
	</script>
	
<!-- Google Code for Remarketing Tag -->
<!--
Remarketing tags may not be associated with personally identifiable information or placed on pages related to sensitive categories. See more information and instructions on how to setup the tag on: http://google.com/ads/remarketingsetup
-->
	<script type="text/javascript">
        {% placeholder google_tag_params %}
	</script>
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 825149356;
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/825149356/?guid=ON&amp;script=0"/>
</div>
</noscript>

</body>